import Ajax from './ajax'
let ajax = new Ajax('/api');
let file = new Ajax('/file');
export default {
    install (vm) {
        vm.prototype.$post = (url,data) => ajax.request({url,data});
        vm.prototype.$file = (url,data) => file.request({url,data});
    }
}